﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.DTO.ViewModel.User
{
    public class ResponsePermissionListDTO
    {
        /// <summary>
        /// 权限编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 权限父级编号
        /// </summary>
        public int Permissions_Pid { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionsName { get; set; }
        /// <summary>
        /// 权限描述
        /// </summary>
        public string? PermissionsDescription { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? OrderSort { get; set; }
        /// <summary>
        /// Api接口
        /// </summary>
        public string? ApiId { get; set; }
        /// <summary>
        /// 路由接口
        /// </summary>
        public string? RouteId { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? Icon { get; set; }
        /// <summary>
        /// 是否是按钮
        /// </summary>
        public bool? IsButton { get; set; } 
        /// <summary>
        /// 是否是隐藏菜单
        /// </summary>
        public bool? IsHide { get; set; } 
        /// <summary>
        /// 按钮事件
        /// </summary>
        public string? Func { get; set; }
        /// <summary>
        /// 激活状态
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public List<ResponsePermissionListDTO> children { get; set; }
    }
}
